import request from "@/utils/request";

/**
 * @description 登录
 * @param {*} data
 */
export const Login = (data) => {
  return request({
    url: "/Api/User/Login",
    method: "post",
    data,
    showLoading: false,
  });
};
/**
 * @description 小程序解析code
 * @param {*} data
 */
export const onLogin = (data) => {
  return request({
    url: "/Api/User/OnLogin",
    method: "post",
    data,
    showLoading: false,
  });
};
